﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@model RegisterViewModel
@{
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
    ViewBag.Title = "注册";
}
<div class="container">

    <div class="card o-hidden border-0 shadow-lg my-5">
        <div class="card-body p-0">
            <!-- Nested Row within Card Body -->
            <div class="row">
                <div class="col-lg-5 d-none d-lg-block bg-register-image"></div>
                <div class="col-lg-7">
                    <div class="p-5">
                        <div class="text-center">
                            <h1 class="h4 text-gray-900 mb-4">注册账号！</h1>
                        </div>
                        <form class="user" method="post" asp-controller="Account" asp-action="Register">
                            <div class="form-group">
                                <input type="text" class="form-control form-control-user" id="exampleFirstName"
                                       placeholder="请输入用户名" asp-for="UserName">
                                <span asp-validation-for="UserName" class="text-danger offset-sm-3 my-sm-1"></span>
                             @*   <div class="col-sm-6 mb-3 mb-sm-0">
                                    <input type="text" class="form-control form-control-user" id="exampleFirstName"
                                           placeholder="First Name">
                                </div>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control form-control-user" id="exampleLastName"
                                           placeholder="Last Name">
                                </div>*@
                            </div>
                            <div class="form-group">
                                <input type="email" class="form-control form-control-user" id="exampleInputEmail"
                                       placeholder="请输入邮箱地址" asp-for="Email">
                                <span asp-validation-for="Email" class="text-danger offset-sm-3 my-sm-1"></span>
                                <span class="text-danger offset-sm-3 my-sm-1">@ViewBag.EmailError</span>
                            </div>
                            <div class="form-group row">
                                <div class="col-sm-6 mb-3 mb-sm-0">
                                    <input type="password" class="form-control form-control-user"
                                           id="exampleInputPassword" placeholder="请输入密码" asp-for="Password">
                                    <span asp-validation-for="Password" class="text-danger offset-sm-3 my-sm-1"></span>
                                </div>
                                <div class="col-sm-6">
                                    <input type="password" class="form-control form-control-user"
                                           id="exampleRepeatPassword" placeholder="重复确认密码" asp-for="ConfirmPassword">
                                    <span asp-validation-for="ConfirmPassword" class="text-danger offset-sm-3 my-sm-1"></span>
                                </div>
                            </div>
                            <button class="btn btn-primary btn-user btn-block" type="submit">
                                注册
                            </button>
                            <hr>
                            <a asp-controller="home" asp-action="unsupported" class="btn btn-google btn-user btn-block">
                                <i class="fab fa-qq fa-fw"></i> 通过QQ注册
                            </a>
                            <a asp-controller="home" asp-action="unsupported" class="btn btn-facebook btn-user btn-block">
                                <i class="fab fa-weixin fa-fw"></i> 通过微信注册
                            </a>
                        </form>
                        <hr>
                        <div class="text-center">
                            <a class="small" asp-controller="Account" asp-action="ForgotPassword">忘记密码?</a>
                        </div>
                        <div class="text-center">
                            <a class="small" asp-controller="Account" asp-action="Login">已经有账号? 开始登录!</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

<!-- Core plugin JavaScript-->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>

<!-- Custom scripts for all pages-->
<script src="js/sb-admin-2.min.js"></script>
